﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class WebForm4 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string s = Request.HttpMethod;
            if (s=="POST")
            {
                string username = Request.Form["TextBox1"];
                string password = Request.Form["TextBox2"];
                Literal1.Text = $"欢迎你，{username}，你的密码是：{password}";
            }
            else  if(s=="GET")
            {
                string username2 = Request.QueryString["username"];
                string password2 = Request.QueryString["password"];
                Literal1.Text = $"欢迎你，{username2}，你的密码是：{password2}";
            }
        }
    }
}